package com.ctg.itrdc.imageconsole.data.entity;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

import com.ctg.itrdc.paspsdk.pub.annotations.CacheProvider;
import com.ctg.itrdc.paspsdk.pub.entity.BaseEntity;
import com.ctg.itrdc.paspsdk.pub.enums.CacheLevel;


@Table(name = "IMAGE_CONFIG")
public class ImageConfig extends BaseEntity<Long> {

	/**
	 * 
	 */
	private static final long serialVersionUID = -591863004911423348L;

	/**
	 * 
	 * @author yuxiaoyu
	 *
	 */

	@Id
	@Column(name = "ID")
	private Long id;

	/**
	 * 镜像配置名
	 */
	@Column(name = "CONFIG_NAME")
	private String configName;

	/**
	 * 配置版本
	 */
	@Column(name = "CONFIG_VERSION")
	private String configVersion;

	@Column(name = "CREATE_TIME")
	private Timestamp createTime;

	@Column(name = "LAST_UPDATE_TIME")
	private Timestamp lastUpdateTime;

	/**
	 * 所属镜像id
	 */
	@Column(name = "DOCKER_IMAGE_TAG_ID")
	private Long dockerImageTagId;

	/**
	 * 创建用户
	 */
	@Column(name = "CREATE_USER_ID")
	private Long createUserId;

	/**
	 * 最后更改用户
	 */
	@Column(name = "LAST_UPDATE_USER_ID")
	private Long lastUpdateUserId;

	/**
	 * 环境配置
	 */
	@Column(name = "CONFIG")
	private String config;

	public String getConfig() {
		return config;
	}

	public void setConfig(String config) {
		this.config = config;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getConfigName() {
		return configName;
	}

	public void setConfigName(String configName) {
		this.configName = configName;
	}

	public String getConfigVersion() {
		return configVersion;
	}

	public void setConfigVersion(String configVersion) {
		this.configVersion = configVersion;
	}

	public Timestamp getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	public Timestamp getLastUpdateTime() {
		return lastUpdateTime;
	}

	public void setLastUpdateTime(Timestamp lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}

	public Long getDockerImageTagId() {
		return dockerImageTagId;
	}

	public void setDockerImageTagId(Long dockerImageTagId) {
		this.dockerImageTagId = dockerImageTagId;
	}

	public Long getCreateUserId() {
		return createUserId;
	}

	public void setCreateUserId(Long createUserId) {
		this.createUserId = createUserId;
	}

	public Long getLastUpdateUserId() {
		return lastUpdateUserId;
	}

	public void setLastUpdateUserId(Long lastUpdateUserId) {
		this.lastUpdateUserId = lastUpdateUserId;
	}

}
